
CC=gcc
C_FLAGS=-c -Wall -O2
LIBS=-lm -L.. -lmatvec
INCLUDES=-I. -I..
OBJECTS=vec.o operations.o

vec: $(OBJECTS)
	$(CC) -o vec $(OBJECTS) $(LIBS) $(INCLUDES)

.c.o:
	$(CC) $(CPP_FLAGS) $(C_FLAGS) $< $(INCLUDES)

install:
	cp vec /usr/local/bin/

clean:
	rm -f *.o
	rm -f vec
